home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / include / funcproto.h < prev    next >
C/C++ Source or Header  |  1992-10-07  |  616b  |  42 lines

  1. #ifndef FUNCPROTO_H
  2. #define FUNCPROTO_H
  3.  
  4. #if __STDC__ || defined(__cplusplus)
  5. #  undef WANT_PROTOTYPES
  6. #endif
  7.  
  8. #ifdef WANT_PROTOTYPES
  9. #  define DOPROTO
  10. #  define ELLIPSIS
  11. #endif
  12.  
  13. #ifdef __cplusplus
  14. #  define DOPROTO
  15. #  define ELLIPSIS ...
  16. #  define C_LINKAGE_BEGIN extern "C" {
  17. #  define C_LINKAGE_END   }
  18. #else
  19. #  define C_LINKAGE_BEGIN
  20. #  define C_LINKAGE_END
  21. #endif
  22.  
  23. #if __STDC__ && !defined(__cplusplus)
  24. #  define DOPROTO
  25. #  define ELLIPSIS
  26. #endif
  27.  
  28. #ifdef NO_PROTOTYPES
  29. #  undef DOPROTO
  30. #endif
  31.  
  32. #ifdef DOPROTO
  33. #  define P_(args) args
  34. #else
  35. #  define P_(args) ()
  36. #  define ELLIPSIS
  37. #endif
  38.  
  39. #undef DOPROTO
  40.  
  41. #endif
  42.